Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When use crictl rmp -a -f, Avoid excessive coroutines causing context… #1749

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jokemanfire
Copy link
Contributor

@jokemanfire jokemanfire commented Jan 16, 2025

There were some issues when creating approximately 400 containers and 200 pods.When I use crictl rmp -a -f.
The error occur
removing the pod sandbox "5c963da93d21cb6af42513ddbb682491aac7c91fd687f8e3bbf4d51a7dfaffed": rpc error: code = DeadlineExceeded desc = context deadline exceeded

What type of PR is this?

/kind optimize

What this PR does / why we need it:

Increase the maximum number of co processes limit.

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 16, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jokemanfire
Once this PR has been reviewed and has the lgtm label, please assign klueska for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 16, 2025
… timeout

Increase the maximum number of co processes limit

Signed-off-by: jokemanfire <[email protected]>
@kwilczynski
Copy link
Member

@jokemanfire have you tried to increase the default timeout, which is rather short, instead?

@jokemanfire
Copy link
Contributor Author

@jokemanfire have you tried to increase the default timeout, which is rather short, instead?

It could , But is it more user-friendly to increase the concurrency limit on goroutines here?Otherwise, I would have to try a better threshold on timeout. Thanks

@saschagrunert
Copy link
Member

But is it more user-friendly to increase the concurrency limit on goroutines here?

I would not say it's more user friendly, because it may be intentional to have more than 10 pods to be removed at a specific time.

@jokemanfire
Copy link
Contributor Author

jokemanfire commented Jan 20, 2025

But is it more user-friendly to increase the concurrency limit on goroutines here?

I would not say it's more user friendly, because it may be intentional to have more than 10 pods to be removed at a specific time.

In my opinion, the design should be more inclined towards thread pools or database connection pools (given a limit, after all, containerd processing requests also have their own concurrency). If 1000 pods are deleted and 1000 coroutines or threads are started at the same time, I think this is a problem in the design, after all, crictl is not a tool for testing concurrency limit. This is just my opinion. It may be better to conduct concurrency testing using a cri-test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants